<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="/resources/css/admin/course/addCourseForm.css" />
	<script type="text/javascript" src="/resources/js/admin/course/addCourseForm.js"></script>
	<title>/admin/course/addCourseForm.jsp</title>	
</head>
<body>
	<br>
	<div id="coursetop">관리자 >수강관리>수강추가페이지</div>	
	<div id="alladdcourse">	
	<form action="/admin/course/addCourse" method="post">
	<div id="top">
			<h2>수강추가페이지</h2>
	</div>
	<div id="courseselect">
	<label for="banIdx">반 선택</label>
	<select name="banIdx" id="banIdx">
		<c:forEach var="ban" items="${banList}">
			<option value="${ban.banIdx}">
				${ban.banName}(${ban.banStart}~${ban.banEnd})
			</option>		
		</c:forEach>
	</select>
	</div>
	<div id="subjectselect">
	<label for="subjectIdx">과목 선택</label>
	<select name="subjectIdx" id="subjectIdx">
		<c:forEach var="subject" items="${subjectList}">
			<option value="${subject.subjectIdx}">
				${subject.subjectName}
			</option>		
		</c:forEach>
	</select>
	</div>
	<div id="bottom">
			<input type="submit" value="수강추가">		
	</div>
	</form>
	</div>
</body>
</html>